-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slightly improved NoCandidateFound error message. #614
Slightly improved NoCandidateFound error message. #614
Conversation
piptools/exceptions.py
Outdated
@@ -13,6 +13,10 @@ def __str__(self): | |||
'Could not find a version that matches {}'.format(self.ireq), | |||
'Tried: {}'.format(', '.join(str(version) for version in sorted_versions) or '(no version found at all)') | |||
] | |||
if sorted_versions: | |||
lines.append('You probably have incompatible dependencies.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would try to take a more neutral tone, as this seems to be accusing. How about:
There are incompatible versions in solved versions of dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I'll change that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, I rephrased a bit
75ec353
to
ff1c419
Compare
piptools/exceptions.py
Outdated
if sorted_versions: | ||
lines.append('There are incompatible versions in the resolved dependencies.') | ||
else: | ||
lines.append('Was the PyPi repository reachable?') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We know which pypi repository was tried, I would add it here. If it is an internal server, this will help diagnose errors vs public pypi. Small nit:
Is the $(pypi) repo reachable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There we go
ff1c419
to
e8129c5
Compare
Much better ;-) LGTM |
This should help a little, making the message less cryptic.
Still no "source of conflict" yet.
Fixes #352
Changelog-friendly one-liner: Slightly improved the NoCandidateFound error message.
Contributor checklist